<#--
/****************************************************
 * Description: 角色的简单列表页面，没有编辑功能
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      bfsu
 * @version     1.0
 * @see
	HISTORY
    *  2013-08-08 bfsu Create File
**************************************************/
-->
<#include "/view/templates/ace/ace-inc.ftl">
<@list >
    <thead>
        <tr>
            <th><input type="checkbox" class="bscheckall"></th>
            <th>名称</th>
            <th>代码</th>
            <th>描述</th>
            <th>是否可用</th>
            <th>是否系统角色</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <#if page.items??>
        <#list page.items as item>
        <tr>
            <td>
				<input type="checkbox" class="bscheck" data="id:${item.id}">
	        </td>
            <td>
                ${item.title}
            </td>
            <td>
                ${item.code}
            </td>
            <td>
                ${item.description}
            </td>
            <td>
            	${getIntText(item.isEnabled)}
            </td>
            <td>
            	${getIntText(item.isSys)}
            </td>
            <td>
				<@button icon="pencil" type="primary" size="sm"
					onclick="bfsu.edit('${base}/components/security/role/input/${item.id}','修改角色');">修改</@button>
				<@button icon="remove" type="primary" size="sm" 
					onclick="bfsu.del('${base}/components/security/role/delete/${item.id}','删除角色？');">删除</@button>
				<@button icon="wrench" type="primary" size="sm" onclick="bfsu.edit('${base}/components/security/role/listpri/${item.id}','设置权限')">设置权限</@button>
	        </td>
        </tr>
        </#list>
        </#if>
    </tbody>
</@list>